﻿#ifndef CAMERAMANAGER_H
#define CAMERAMANAGER_H

#include <QObject>
#include <iostream>
#include "Camera/MvCamera.h"

class CameraManager : public QObject
{
    Q_OBJECT
public:
    explicit CameraManager(QObject *parent = nullptr);
    ~CameraManager();

//    const static int16_t IMAGE_WIDTH = 1280;
//    const static int16_t IMAGE_HEIGHT = 720;
//    const static int16_t IMAGE_WIDTH_Center = 640;
//    const static int16_t IMAGE_HEIGHT_Center = 360;

    bool openCamera();
    void closeCamera();
    bool slot_catchImage(QImage&);
public slots:
    void slot_init();
signals:

private:
    CMvCamera *mycamera  {nullptr};

    bool isCamConnect {false};
};

#endif // CAMERAMANAGER_H
